package com.grass.p019lv.novel.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.bean.novel.FictionList;
import com.androidx.p013lv.base.recycler.BaseRecyclerAdapter;
import com.androidx.p013lv.base.recycler.BaseRecyclerHolder;
import com.androidx.p013lv.base.utils.UiUtils;

/* renamed from: com.grass.lv.novel.adapter.FictionLabelAdapter */
public class FictionLabelAdapter extends BaseRecyclerAdapter<FictionList, Holder> {
    String domain;

    public void setDomain(String str) {
        this.domain = str;
    }

    public void MyHolder(Holder holder, int i) {
        holder.setData((FictionList) this.list.get(i), i);
    }

    public void onViewRecycled(Holder holder) {
        super.onViewRecycled((RecyclerView.ViewHolder) holder);
    }

    @Override // androidx.recyclerview.widget.RecyclerView.Adapter
    public Holder onCreateViewHolder(ViewGroup viewGroup, int i) {
        return new Holder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_fiction_label, viewGroup, false));
    }

    /* access modifiers changed from: package-private */
    /* renamed from: com.grass.lv.novel.adapter.FictionLabelAdapter$Holder */
    public class Holder extends BaseRecyclerHolder {
        TextView tv_favorites_num;
        TextView tv_info;
        TextView tv_see_num;
        TextView tv_title;

        public Holder(View view) {
            super(view);
            this.tv_title = (TextView) view.findViewById(R.id.tv_title);
            this.tv_info = (TextView) view.findViewById(R.id.tv_content_info);
            this.tv_see_num = (TextView) view.findViewById(R.id.tv_see_num);
            this.tv_favorites_num = (TextView) view.findViewById(R.id.tv_favorites_num);
        }

        public void setData(FictionList fictionList, int i) {
            this.tv_title.setText(fictionList.getFictionTitle());
            TextView textView = this.tv_info;
            textView.setText(fictionList.getInfo() + "");
            TextView textView2 = this.tv_see_num;
            textView2.setText(UiUtils.num2str(fictionList.getFakeWatchTimes()) + "");
            TextView textView3 = this.tv_favorites_num;
            textView3.setText(UiUtils.num2str(fictionList.getFakeLikes()) + "");
        }
    }
}
